﻿<!doctype html>
<html>
<head>
	<meta charset="utf-8" />
	<title>首页</title>
    <link href="css/mycss.css" rel="stylesheet" type="text/css">
    <script src="http://a.tbcdn.cn/s/kissy/1.3.0/kissy.js" charset="utf-8"></script> 
    <script src="javascript/ie6.js" charset="utf-8"></script>
    <script src="dwr/interface/AppUtil.js"></script>
	<script src="dwr/engine.js"></script>
    <script type="text/javascript">
    var userInfo;
    KISSY.getScript("http://l.tbcdn.cn/apps/top/x/sdk.js?appkey="+KISSY.Cookie.get("appkey"));
	//点击导航选中当前项
	KISSY.use("dom",function(S,DOM){
        var $=S.all;
        AppUtil.select(function(data){
        	userInfo = data;
        	
        	var html = '<li><a href="home.html" class="apple" target="content"><span>Apple</span></a></li>';
        	
        	for(var i=0;i<data.module.length;i++){
        		html += '<li><a href="'+ data.module[i].moduleUrl +'" data="'+ data.module[i].height +'" flag="'+ data.module[i].flag +'" target="content">'+ data.module[i].moduleName +'</a></li>';
        	}
        	$("#nav").html(html);
        	$("#nav a").each(function(index){
	            $(this).on("click",function(event){
	                $("#nav a").removeClass("current");
	                $(index).addClass("current");
	                if(event.currentTarget.getAttribute('data')!=null){
	                	S.get("#content").height = parseInt(event.currentTarget.getAttribute('data'));
	                }
	                else{
	                	S.get("#content").height = 500;
	                }
	            });
	        });
        });
    }); 
    
    KISSY.Cookie.remove('anti_ie6','','/');
    if (KISSY.UA.ie === 6) {
        KISSY.use('gallery/anti-ie6/1.0/draw/');
    }
	</script>
</head>
<body>
	<!--主体内容-->
	<div id="main">
    	<!--头部信息 start-->
    	<div id="head">
        	<!--用户信息 start-->
        	<div>dsadsasd</div>
	        <!--导航 start -->
        	<div id="container">
                <ul id="nav"/>
            </div>
    	</div>
        <!--主体内容-->
       	<iframe id="content" name="content" width="100%" height="500" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" src="home.html"></iframe>
        <!--尾部信息-->
	<div id="tail">此处显示  id "tail" 的内容</div>
    </div>
</body>
</html>